package de.homelabs.jaxbsandbox.domain;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement
public class PageElement {
	@XmlElement(required = false)
	private int id;
	@XmlElement(required = true)
	private String name;
	@XmlElement(required = true)
	private String pageUrl;
	@XmlElement(required = true, name="contenelement")
	private List<ContentElement> contentElements = new ArrayList<ContentElement>();
	
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPageUrl() {
		return pageUrl;
	}
	public void setPageUrl(String pageUrl) {
		this.pageUrl = pageUrl;
	}
	public List<ContentElement> getContentElements() {
		return contentElements;
	}
	public void setContentElements(List<ContentElement> contentElements) {
		this.contentElements = contentElements;
	}
}
